package io;

import java.io.File;
import java.util.Arrays;

public class IODemo2 {
    public static void main(String[] args) {
        File file = new File("test-dir");
        String[] result1 = file.list();
        System.out.println(Arrays.toString(result1));
        File[] result2 = file.listFiles();
        System.out.println(Arrays.toString(result2));
    }
}
